﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Fake_Shop_WebApi.Migrations
{
    public partial class initiaMigrations3 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "DateTime",
                table: "TouristRoutes");

            migrationBuilder.AddColumn<DateTime>(
                name: "CreateTime",
                table: "TouristRoutes",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.InsertData(
                table: "TouristRoutes",
                columns: new[] { "Id", "CreateTime", "DepartureTime", "Description", "DiscountPresent", "Features", "Fees", "Notes", "OriginalPrice", "Title", "UpdateTime" },
                values: new object[] { new Guid("7115e5a5-aa0e-4735-9262-162eb9bb10c9"), new DateTime(2020, 9, 6, 15, 7, 29, 921, DateTimeKind.Utc).AddTicks(1040), null, "kkk简介", null, null, null, null, 10m, "测试", null });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "TouristRoutes",
                keyColumn: "Id",
                keyValue: new Guid("7115e5a5-aa0e-4735-9262-162eb9bb10c9"));

            migrationBuilder.DropColumn(
                name: "CreateTime",
                table: "TouristRoutes");

            migrationBuilder.AddColumn<DateTime>(
                name: "DateTime",
                table: "TouristRoutes",
                type: "datetime2",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
        }
    }
}
